<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>会员中心 - 十年全勤健身房</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/icons.css">
    <link rel="stylesheet" href="css/mobile-nav.css">
    <link rel="stylesheet" href="css/quick-nav.css">
    <style>
        .member-hero {
            background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/imgs/member-bg.jpg') no-repeat center center;
            background-size: cover;
            height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: #fff;
            margin-top: 80px;
        }

        .member-hero h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .member-content {
            padding: 4rem 5%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .member-levels {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .level-card {
            background: #fff;
            border-radius: 10px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .level-card:hover {
            transform: translateY(-5px);
        }

        .level-card h3 {
            color: #2ecc71;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .level-card .price {
            font-size: 2rem;
            color: #333;
            margin-bottom: 1rem;
        }

        .level-card ul {
            list-style: none;
            padding: 0;
            margin-bottom: 2rem;
        }

        .level-card ul li {
            margin-bottom: 0.5rem;
            color: #666;
        }

        .level-card .join-button {
            display: inline-block;
            padding: 0.8rem 2rem;
            background-color: #2ecc71;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }

        .level-card .join-button:hover {
            background-color: #27ae60;
        }

        .member-benefits {
            text-align: center;
            margin-bottom: 4rem;
        }

        .member-benefits h2 {
            color: #333;
            margin-bottom: 2rem;
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .benefit-item {
            padding: 1.5rem;
            background: #f9f9f9;
            border-radius: 10px;
        }

        .benefit-item i {
            font-size: 2rem;
            color: #2ecc71;
            margin-bottom: 1rem;
        }

        .benefit-item h3 {
            color: #333;
            margin-bottom: 0.5rem;
        }

        .benefit-item p {
            color: #666;
        }

        @media (max-width: 768px) {
            .member-hero {
                height: 200px;
            }

            .member-hero h1 {
                font-size: 2rem;
            }

            .member-content {
                padding: 2rem 5%;
            }
        }

        /* 弹窗样式 */
        .contact-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .contact-modal.show {
            display: flex;
        }

        .modal-content {
            background: #fff;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            max-width: 500px;
            width: 90%;
            position: relative;
        }

        .close-button {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
        }

        .contact-info {
            margin-bottom: 2rem;
        }

        .contact-info h3 {
            color: #2ecc71;
            margin-bottom: 1rem;
        }

        .contact-info p {
            margin-bottom: 0.5rem;
            color: #666;
        }

        .qr-code {
            text-align: center;
        }

        .qr-code img {
            max-width: 200px;
            margin-bottom: 1rem;
        }
    </style>
</head>

<body>
    <header>
        <nav class="main-nav">
            <div class="logo">
                <a href="index.html">十年全勤健身</a>
            </div>
            <ul class="nav-links">
                <li><a href="index.html">首页</a></li>
                <li><a href="courses.html">课程介绍</a></li>
                <li><a href="trainers.html">教练团队</a></li>
                <li><a href="facilities.html">器材设施</a></li>
                <li><a href="news.html">健身资讯</a></li>
                <li><a href="shop.html">在线商城</a></li>
                <li><a href="member.html" class="active">会员中心</a></li>
                <li><a href="events.html">活动专区</a></li>
                <li><a href="about.html">关于我们</a></li>
                <li><a href="contact.html">联系我们</a></li>
            </ul>
        </nav>
    </header>

    <section class="member-hero">
        <div class="member-hero-content">
            <h1>会员中心</h1>
            <p>享受专属特权，开启健康生活</p>
        </div>
    </section>

    <main class="member-content">
        <section class="member-levels">
            <div class="level-card">
                <h3>基础会员</h3>
                <div class="price">¥1999/年</div>
                <ul>
                    <li>无限次使用健身器材</li>
                    <li>免费参加团操课程</li>
                    <li>专业教练指导（2次/月）</li>
                    <li>会员专属休息区</li>
                </ul>
                <a href="#" class="join-button">立即加入</a>
            </div>

            <div class="level-card">
                <h3>高级会员</h3>
                <div class="price">¥3999/年</div>
                <ul>
                    <li>基础会员所有权益</li>
                    <li>专业教练指导（6次/月）</li>
                    <li>营养餐计划定制</li>
                    <li>专属更衣柜</li>
                </ul>
                <a href="#" class="join-button">立即加入</a>
            </div>

            <div class="level-card">
                <h3>至尊会员</h3>
                <div class="price">¥5999/年</div>
                <ul>
                    <li>高级会员所有权益</li>
                    <li>私教一对一（12次/月）</li>
                    <li>SPA服务（2次/月）</li>
                    <li>免费停车</li>
                </ul>
                <a href="#" class="join-button">立即加入</a>
            </div>
        </section>

        <section class="member-benefits">
            <h2>会员专属权益</h2>
            <div class="benefits-grid">
                <div class="benefit-item">
                    <i class="icon-star"></i>
                    <h3>专业指导</h3>
                    <p>资深教练一对一指导，制定个性化训练计划</p>
                </div>

                <div class="benefit-item">
                    <i class="icon-heart"></i>
                    <h3>营养建议</h3>
                    <p>专业营养师定制饮食计划，科学健康饮食</p>
                </div>

                <div class="benefit-item">
                    <i class="icon-gift"></i>
                    <h3>会员活动</h3>
                    <p>定期举办会员专属活动，结识志同道合的朋友</p>
                </div>

                <div class="benefit-item">
                    <i class="icon-diamond"></i>
                    <h3>专属优惠</h3>
                    <p>会员专享商品折扣，课程优先预约</p>
                </div>
            </div>
        </section>
    </main>

    <footer>
        <div class="footer-content">
            <div class="footer-section">
                <h4>联系我们</h4>
                <p>地址：济南市章丘区健身大街88号</p>
                <p>电话：400-XXX-XXXX</p>
                <p>邮箱：info@qiangjian.com</p>
            </div>
            <div class="footer-section">
                <h4>关注我们</h4>
                <div class="social-links">
                    <a href="#" class="social-link">微信</a>
                    <a href="#" class="social-link">微博</a>
                    <a href="#" class="social-link">抖音</a>
                </div>
            </div>
        </div>
        <div class="footer-bottom">
            <p>&copy; 2025 十年全勤健身 版权所有</p>
        </div>
    </footer>

    <nav class="quick-nav">
        <ul class="quick-nav-links">
            <li><a href="index.html">首页</a></li>
            <li><a href="courses.html">课程介绍</a></li>
            <li><a href="trainers.html">教练团队</a></li>
            <li><a href="facilities.html">器材设施</a></li>
            <li><a href="news.html">健身资讯</a></li>
            <li><a href="shop.html">在线商城</a></li>
            <li><a href="member.html">会员中心</a></li>
            <li><a href="events.html">活动专区</a></li>
            <li><a href="about.html">关于我们</a></li>
            <li><a href="contact.html">联系我们</a></li>
        </ul>
    </nav>

    <script src="js/mobile-nav.js"></script>
    <script src="js/nav-highlight.js"></script>
    <!-- 联系方式弹窗 -->
    <div class="contact-modal" id="contactModal">
        <div class="modal-content">
            <button class="close-button" onclick="closeModal()">&times;</button>
            <div class="contact-form" id="contactForm">
                <h3>请填写您的联系方式</h3>
                <form id="userContactForm" onsubmit="handleSubmit(event)">
                    <div class="form-group">
                        <label for="name">姓名：</label>
                        <input type="text" id="name" name="name" required>
                    </div>
                    <div class="form-group">
                        <label for="phone">电话：</label>
                        <input type="tel" id="phone" name="phone" required pattern="[0-9]{11}">
                    </div>
                    <div class="form-group">
                        <label for="email">邮箱：</label>
                        <input type="email" id="email" name="email" required>
                    </div>
                    <button type="submit" class="submit-button">确认提交</button>
                </form>
            </div>
            <div class="qr-code" id="qrCode" style="display: none;">
                <h3>扫码支付</h3>
                <img src="assets/imgs/ewm.png" alt="收款码">
                <p>支付完成后，我们的客服会尽快与您联系</p>
            </div>
        </div>
    </div>

    <style>
        .form-group {
            margin-bottom: 1rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #333;
        }

        .form-group input {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
        }

        .submit-button {
            background-color: #2ecc71;
            color: white;
            border: none;
            padding: 0.8rem 2rem;
            border-radius: 5px;
            cursor: pointer;
            width: 100%;
            font-size: 1rem;
            margin-top: 1rem;
        }

        .submit-button:hover {
            background-color: #27ae60;
        }
    </style>

    <script>
        // 获取所有"立即加入"按钮
        const joinButtons = document.querySelectorAll('.join-button');
        const modal = document.getElementById('contactModal');
        const contactForm = document.getElementById('contactForm');
        const qrCode = document.getElementById('qrCode');

        // 为每个按钮添加点击事件
        joinButtons.forEach(button => {
            button.addEventListener('click', function (e) {
                e.preventDefault();
                modal.classList.add('show');
                // 确保每次打开弹窗时显示表单
                contactForm.style.display = 'block';
                qrCode.style.display = 'none';
            });
        });

        // 关闭弹窗
        function closeModal() {
            modal.classList.remove('show');
            // 重置弹窗状态
            setTimeout(() => {
                contactForm.style.display = 'block';
                qrCode.style.display = 'none';
            }, 300);
        }

        // 点击遮罩层关闭弹窗
        modal.addEventListener('click', function (e) {
            if (e.target === modal) {
                closeModal();
            }
        });

        // 处理表单提交
        function handleSubmit(event) {
            event.preventDefault();
            // 显示收款码
            contactForm.style.display = 'none';
            qrCode.style.display = 'block';
        }
    </script>
</body>

</html>